﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DocumentMakingTools.ViewModels
{
    internal class AboutViewModel
    {
        Page page;
        public Command GotoWebViewPageCommand { get; set; }
        public AboutViewModel(Page page)
        {
            this.page = page;

            GotoWebViewPageCommand = new Command((object obj) => ExecuteGotoWebViewPageCommand(obj));
        }
        async void ExecuteGotoWebViewPageCommand(object obj)
        {
            var url = obj as string;
            await Shell.Current.GoToAsync($"WebViewPage?url={url}");
        }
    }
}
